package cn.likole.oj.bean;

import org.nutz.dao.entity.annotation.*;

import java.util.Date;

/**
 * 正在进行的任务
 */
@Table("doing_task")
@PK({"userId","taskId"})
@TableIndexes(@Index(fields = "userId",unique = false))
public class DoingTask {

    /**
     * 用户编号
     */
    @Column
    private int userId;

    /**
     * 任务编号
     */
    @Column
    private int taskId;

    /**
     * 任务完成状态
     */
    @Column
    private int state;

    /**
     * 开始时间
     */
    @Column
    private Date startTime;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getTaskId() {
        return taskId;
    }

    public void setTaskId(int taskId) {
        this.taskId = taskId;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
}
